package com.nutiteq.tilelayers;

import com.nutiteq.components.MapTile;
import com.nutiteq.maps.MapTileOverlay;

public class ExtraOverlay implements MapTileOverlay {
  public String getOverlayTileUrl(final MapTile tile) {
    final StringBuffer url = new StringBuffer("http://maps.google.com/mapsdt?");
    url.append("id=http://code.google.com/apis/kml/documentation/KML_Samples.kml&");
    url.append("x=").append(tile.getX() / 256);
    url.append("&y=").append(tile.getY() / 256);
    url.append("&zoom=").append(17 - tile.getZoom());
    return url.toString();
  }
}
